/**
 * api 列表
 * @param {Object} params - 参数 
 * custom 说明
 * custom: {
	 auth: Boolean  是否传入token 默认传入
	 verification: Boolean 是否开启验证提示， 开启后  参数不对 弹出提示信息
 }
 */
import {
	http
} from '@/common/api/service.js'

export default class api {
	// --------------------------功能性接口----------------------
	//主页bunner及信息1
	business(data){return http.get('/client/business/'+data)}
	// 文件上传
	uploadFile(params){return http.upload('/client/common/uploadFile', {
		custom: {verification:true},
		 name: 'files',
		 filePath: params,
	})}
	// 查询字典表
	dictList(data){return http.get('/client/dict/data/dictList',{params:data,custom: {verification:true}})}
	// 获取小程序二维码
	QRCode(data){return http.get('/manage/QRCode', {params:data,custom: {verification:true}})}
	// 修改用户动态页背景图
	// backgroundImage(params){return http.post('/client/user/backgroundImage', params, {custom: {verification:true}})}
	
	backgroundImage(params){return http.upload('/client/user/backgroundImage', {
		custom: {verification:true},
		 name: 'files',
		 filePath: params,
	})}
	// 用组局id拿局在那个店的店铺信息
	invitationInfo(data){return http.get('/client/bureau/invitationInfo',{params:data,custom: {verification:true}})}
	
	//  --------------------------登录接口------------------------
	// 用户登录接口1
	login(params){return http.post('/client/auth/login', params, {custom: {verification:true}})}
	// 用户登录获取手机号1
	getphone(params){return http.post('/client/auth/miniBindPhone', params, {custom: {verification:true}})}


	// --------------------------主持人接口----------------------
	// 查询主持人列表1
	hostList(data){return http.get('/client/host/list',{params:data,custom: {verification:true}})}
	// 查询主持人详情1
	selectHost(data){return http.get('/client/host/selectHost',{params:data,custom: {verification:true}})}
	// 点赞主持人
	hostadd(params){return http.put('/client/host/user/add', params, {custom: {verification:true}})}
	// 取消点赞主持人
	hostcancel(params){return http.put('/client/host/user/cancel', params, {custom: {verification:true}})}
	

	// --------------------------剧本接口----------------------
	// 查询店铺热门剧本1
	hotScript(data){return http.get('/client/script/hotScript',{params:data,custom: {verification:true}})}
	// 首页查询店铺热门剧本 
	hotScriptByBusinessId(data){return http.get('/client/script/hotScriptByBusinessId',{params:data,custom: {verification:true}})}
	// 我玩过的剧本
	myGameScript(data){return http.get('/client/script/myGameScript',{params:data,custom: {verification:true}})}
	// 我玩过的剧本 剧本详情
	myGameScriptDetails(data){return http.get('/client/script/myGameScriptDetails',{params:data,custom: {verification:true}})}
	// 查询剧本详情1
	scriptDetails(data){return http.get('/client/script/scriptDetails',{params:data,custom: {verification:true}})}
	

	// --------------------------商户接口------------------------
	// 查询商户列表
	businessList(data){return http.get('/client/business/list',{params:data,custom: {verification:true}})}
	// 我去过的店
	myGameBusiness(data){return http.get('/client/business/myGameBusiness',{params:data,custom: {verification:true}})}
	// 获取商户详细信息
	businessDetial(data){return http.get('/client/business/'+ data)}
	
	// --------------------------商户房间接口------------------------
	// 查询商户房间列表1
	businessHome(data){return http.get('/client/businessHome/list',{params:data,custom: {verification:true}})}
	// 查询商户房间象棋1
	businessHomeDe(data){return http.get('/client/businessHome/'+data)}
	
	// --------------------------商户剧本关系接口------------------------
	// 热门剧本1
	businessScript(data){return http.get('/client/businessScript/hotScript',{params:data,custom: {verification:true}})}
	// 查询剧本更新1
	renewScript(data){return http.get('/client/businessScript/renewScript',{params:data,custom: {verification:true}})}
	// 店铺剧本哭1
	script(data){return http.get('/client/script/businessScript',{params:data,custom: {verification:true}})}
	
	
	
	// --------------------------用户接口------------------------
	// 修改用户详细信息
	updateuser(params){return http.put('/client/user', params, {custom: { verification:true}})}
	// 删除社区
	forumDelete(params){return http.put('/client/forum/delete', params, {custom: { verification:true}})}
	// 获取用户详细信息1
	getUser(data){return http.get('/client/user',{params:data,custom: {verification:true}})}
	// 获取用户动态头部信息
	forumHead(data){return http.get('/client/user/forumHead',{params:data,custom: {verification:true}})}
	// 获取用户动态头部信息
	head(data){return http.get('/client/user/head',{params:data,custom: {verification:true}})}
	
	
	
	// --------------------------社区接口------------------------
	// 新增社区发布评论
	forum(params){return http.post('/client/forum', params, {custom: {verification:true}})}
	// 社区评论增加点赞
	forumAdd(params){return http.put('/client/forum/add', params, {custom: {verification:true}})}
	// 社区评论取消点赞
	forumCancel(params){return http.put('/client/forum/cancel', params, {custom: {verification:true}})}
	// 查询社区评论首页
	forumList(data){return http.get('/client/forum/list',{params:data,custom: {verification:true}})}
	// 删除社区发布的评论
	forumDel(data){return http.delete('/client/forum/' + data)}
	// 新增社区评论回复
	forumSon(params){return http.post('/client/forumSon', params, {custom: {verification:true}})}
	// 查询社区评论回复列表子回复
	sonReply(data){return http.get('/client/forumSon/sonReply',{params:data,custom: {verification:true}})}
	// 查询社区评论回复列表
	forumSonList(data){return http.get('/client/forumSon/list',{params:data,custom: {verification:true}})}
	// 删除社区评论回复
	forumSonDel(data){return http.delete('/client/forumSon/' + data)}
	// 获取评论详情
	getForum(data){return http.get('/client/forum/getForum',{params:data,custom: {verification:true}})}


	// --------------------------组局人员关系接口------------------------
	// 加入组局接口1
	addBureau(params){return http.post('/client/bureau/user/add', params, {custom: {verification:true}})}
	// 退出组局接口1
	outBureau(params){return http.post('/client/bureau/user/out', params, {custom: {verification:true}})}
	// 组局等待人数1
	waiting(data){return http.get('/client/bureau/user/waiting',{params:data,custom: {verification:true}})}
	
	
	// --------------------------组局接口------------------------
	// 新建组局
	bureau(params){return http.post('/client/bureau', params, {custom: {verification:true},})}
	// 取消组局
	bureauCancel(params){return http.post('/client/bureau/cancel', params, {custom: {verification:true},})}
	// 删除组局1
	bureauDel(params){return http.post('/client/bureau/delete/' ,params, {custom: {verification:true},})}
	// 查询组局列表
	bureauList(data){return http.get('/client/bureau/list',{params:data,custom: {verification:true}})}
	// 查询组局详情1
	bureauDetial(data){return http.get('/client/bureau/'+ data)}
	//  组局用户列表1
	bureauUser(data){return http.get('/client/bureau/user/'+ data)}
	// 我的活动1
	bureauMyList(data){return http.get('/client/bureau/myList',{params:data,custom: {verification:false}})}
	// 我的活动1
	bureauMyLists(data){return http.get('/client/bureau/myLists',{params:data,custom: {verification:false}})}
	// 个人主页我的活动
	myAllBureau(data){return http.get('/client/bureau/myAllBureau',{params:data,custom: {verification:true}})}
	// 推荐组局1
	recommendBureau(data){return http.get('/client/bureau/recommendBureau',{params:data,custom: {verification:true}})}
	
	
	// --------------------------评论接口------------------------
	// 添加关于商户评论
	businessAdd(params){return http.post('/client/quality/businessAdd', params, {custom: { verification:true},})}
	// 获取评论列表信息
	qualityList(data){return http.get('/client/quality/list',{params:data,custom: {verification:true}})}
	// 添加剧本评论
	scriptAdd(params){return http.post('/client/quality/scriptAdd', params, {custom: {verification:true},})}
	// 获取评论详细信息
	quality(data){return http.get('/client/quality/' + data)}
	// 删除评论
	quality(data){return http.delete('/client/quality/' + data)}
	
	
	// --------------------------消息接口------------------------
	// 查询我的评论回复列表
	myForumList(data){return http.get('/client/forumSon/myForumList',{params:data,custom: {verification:true}})}
	// 查询我的评论回复未读-点赞未读总数
	unreadTotal(data){return http.get('/client/forumSon/unreadTotal',{params:data,custom: {verification:true}})}
	// 消息变已读
	forumSonRead(params){return http.put('/client/forumSon', params, {custom: {  verification:true},})}
	
	// 点赞列表
	myFabulousList(data){return http.get('/client/forumSon/myFabulousList',{params:data,custom: {verification:true}})}
	// 点赞变已读
	unread(params){return http.put('/client/forum/unread', params, {custom: {verification:true},})}
	
	
	// --------------------------社区评论接口------------------------
	// 查询社区评论我关注的
	followList(data){return http.get('/client/forum/followList',{params:data,custom: {verification:true}})}
	
	// --------------------------人员关系接口------------------------
	// 新建人员关系
	userLink(params){return http.post('/client/userLink', params, {custom: {verification:true},})}
	// 新建人员关系
	unUserLink(params){return http.put('/client/userLink', params, {custom: {verification:true},})}
	// 我关注的人
	myList(data){return http.get('/client/userLink/myList',{params:data,custom: {verification:true}})}
	// 关注我的人
	strangerList(data){return http.get('/client/userLink/strangerList',{params:data,custom: {verification:true}})}
	
	// --------------------------人员关系接口------------------------
	// 添加邀请
	invitation(params){return http.post('/client/invitation', params, {custom: {verification:true},})}
	// 我的邀请列表
	myInvitation(data){return http.get('/client/invitation/myInvitation',{params:data,custom: {verification:true}})}
	// 邀请我的列表
	toMyInvitation(data){return http.get('/client/invitation/toMyInvitation',{params:data,custom: {verification:true}})}
	// 接受邀请
	acceptInvitation(params){return http.put('/client/invitation/acceptInvitation', params, {custom: {verification:true},})}
	// 拒绝邀请
	refuse(params){return http.put('/client/invitation/refuse', params, {custom: {verification:true},})}
}